const path = require('path')
const _resolve = dir => path.join(__dirname, '..', dir)

const config = [{
    name: 'home',
    path: '/',
    component: _resolve('pages/Home/index.vue')
  },
  {
    name: 'about',
    path: '/about',
    component: _resolve('pages/about/index.vue')
  }
]

export const extendRoutes = (routes, resolve) => {
  routes.push(...config)
}
